<script setup>
import { ref } from 'vue';
import ChildTwo from './09-父子组件通信ChildTwo.vue';
const car = ref('自行车')
const changeCarCb = newCar => {
  car.value = newCar
}
</script>

<template>
  <div>
    父组件--{{ car }}
    <ChildTwo :car="car" @change-car="car = $event" :change-car-cb="changeCarCb"/>
  </div>
</template>

<style scoped></style>